<?php
//comment view
?>
<div id="forum">
<h1><?=$html->link($forum['Forum']['title'], '/forums/view/' . $forum['Forum']['id'])?></h1>
<h2><?=$comments[0]['Topic']['title']?></h2>
<table>
<tr><th>Poster</th><th>Post</th></tr>
<?php
foreach($comments as $comment) {
	echo '<tr><td><p class="username">', $comment['Member']['username'], '</p><p class="level">',  ucwords($comment['Member']['auth_type']), '</p><p class="time">Member since:<br/>', $comment['Member']['membership_date'], '</p></td><td>';
	if ($comment['Comment']['title'] != null) {
		echo '<h2>', $comment['Comment']['title'], '</h2>';
	}
	echo '<p>', $comment['Comment']['text'], "</p><p class='signature time'>&ndash;", $time->niceShort($comment['Comment']['created']), "</p></td></tr>\n";
}
?>
</table>
</div>
<?php
	
	pr($comments);
	
?>